<template>
	<view class="page">
		<view class="title">了解e陪驾</view>
		<view class="item flex" v-for="(item,index) in list" :key="index"
			@click="apifun.navigate('/pages/my/studyDetail?id='+item.id)">
			<view class="item-title ellipsis">{{ item.title }}</view>
			<text class="tn-icon-right" style="color: #666666;margin-left: 40rpx;font-size: 40rpx;"></text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				page: 1,
				list: []
			};
		},
		onLoad() {
			this.initData()
		},
		methods: {
			initData(){
				this.apifun.unirequest('/partner/user/studyList','post',{},(res)=>{
					if(res.code === 200){
						let datas = res.data;
						this.list = datas;
					}else{
						this.apifun.toast(res.msg)
					}
				})
			}
		},
	}
</script>

<style lang="scss" scoped>
	.page {
		padding: 30rpx;
		box-sizing: border-box;
	}

	.title {
		font-size: 34rpx;
		font-weight: bold;
	}

	.item {
		height: 104rpx;
		line-height: 104rpx;
		border-radius: 6rpx;
		padding: 0 24rpx;
		box-sizing: border-box;
		background: #FFFFFF;
		margin-top: 20rpx;
		font-size: 30rpx;
		color: #666666;

		.item-title {
			width: 560rpx;
		}
	}
</style>